# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

from pydantic import BaseModel


class FanqienovelItem(BaseModel):
    # define the fields for your item here like:
    book_name: str
    chapter_index: int
    chapter_title: str
    url: str
    content: str = ""
    pass

if __name__ == '__main__':
    item = FanqienovelItem(book_name="a",chapter_index=1,chapter_title="22",url="http://www")
    print(item.model_dump(exclude_unset=True))